package org.mics.enduser.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


/**
 * 登陆对象
 * @author mics
 * @date 2020年6月10日
 * @version  1.0
 */
@Data
@Schema(description = "账号+验证码登录请求")
public class SLoginRequest {

    @Schema(description = "账号(必填)",required = true)
    @NotBlank(message = "登录账号不能为空")
    @Size( message = "账号不能超过32位")
    private String account;

    @Schema(description = "短信校验码",required = true)
    @NotNull(message = "校验码不能为空")
    private VerificationCodeCheckRequest verificationCodeCheckRequest;

    @Schema(description = "登录标记")
    private Integer flag;
}
